package com.googlecode.battleofendor.synchroniation.messages;

import java.io.Serializable;

import com.jme.math.Vector3f;

public class PositionInfo implements Serializable {

	private static final long serialVersionUID = -223616647895734097L;

	public long time;
	
	public String name;
	
	public String type;
	
	public float x;
	
	public float y;
	
	public float z;
	
	public float speed;
	
	public float dirx;
	
	public float diry;
	
	public float dirz;
	
	public void setDirection(Vector3f unit) {
		this.dirx = unit.x;
		this.diry = unit.y;
		this.dirz = unit.z;
	}
	
	public void setLocation(Vector3f location) {
		this.x = location.x;
		this.y = location.y;
		this.z = location.z;
	}
}
